package serial_cli

import (
	"fmt"
	"github.com/spf13/cobra"
)

func ConfigCmd() *cobra.Command {
	cmd := &cobra.Command{
		Use:   "config",
		Short: "查看配置信息",
		Long:  `查看配置信息`,
		Run: func(cmd *cobra.Command, args []string) {
			config := loadConfig()
			fmt.Printf("%+v", config)
		},
	}
	return cmd
}
